package com.example.demo.Dto;

import com.example.demo.Enum.ProCateRelEnum;
import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.DecimalMin;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

@Data
public class UpdateProductDto {

    @NotNull

    private Long id;

    private String name;

    private String description;

    @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT)
    @DecimalMin(value = "0.0", inclusive = false)
    private Float price;

    @Min(0)
    private Integer stock;

    @Min(0)
    private Integer sold;

    private String merchantName;

    private List<String> categories;

    private ProCateRelEnum status;
}